{extend name="common@default/base/ucmobile_base" /}
{block name="body"}
<title>注册</title>

  <link rel="stylesheet" href="__CSS__/login.css">
  <link rel="stylesheet" href="__CSS__/weui.css">
    <!--<style>
        .header {
            text-align: center;
        }
        .header h1 {
            font-size: 200%;
            color: #333;
            margin-top: 30px;
        }
        .header p {
            font-size: 14px;
        }
    </style>-->
   <!-- <div class="header">
        <div class="am-g">
            <h1>{$appinfo.public_name}</h1>
        </div>
        <hr />
    </div>
    <div class="am-g">
        <div class="am-u-lg-6 am-u-md-8 am-u-sm-centered">
            <div class="am-cf">
                <div class="am-fl am-text-danger"><h2>注册</h2></div>
                <div class="am-fr"><h3>已有账号，<a href="{:url( 'Ucuser/Index/login',array('mp_id'=>$mp_id) )}">登录</a></h3></div>
            </div>
                <hr>
            <br>

            <form action="{:url( 'Ucuser/Index/register',array('mp_id'=>$mp_id) )}" method="post" class="am-form am-form-horizontal">
                <div class="am-form-group">
                <label for="mobile" class="am-u-sm-3 am-form-label">手机:</label>
                    <div class="am-u-sm-9">
                <input type="text" name="mobile" id="mobile" value="">
                    </div>
                </div>
                <br>
                <div class="am-form-group">
                    <label for="password" class="am-u-sm-3 am-form-label">验证码:</label>
                    <div class="am-u-sm-9 am-form-inline">
                        <input type="number" id="verify" name="verify"/>
                        <button type="button" class="am-btn am-btn-primary btn_verify">点击获取</button>
                    </div>
                </div>
                <br>
                    <div class="am-form-group">
                    <label for="password" class="am-u-sm-3 am-form-label">密码:</label>
                        <div class="am-u-sm-9">
                <input type="password" name="password" id="password" value="">
                    </div>
                    </div>
                <br>
                <label for="remember-me">
                    <input id="remember-me" name="remember" type="checkbox">
                    记住密码
                </label>
                <br />
                <div class="am-cf">
                    <input type="submit" name="" value="注 册" class="am-btn am-btn-primary am-btn-sm am-fl">
                    <a type="button" href="{:url( 'Ucuser/Index/forget',array('mp_id'=>$mp_id) )}" name="" class="am-btn am-btn-default am-btn-sm am-fr">忘记密码 ^_^? </a>
                </div>
            </form>-->
            







           
<!--<div class="bg">
	<img src="/static/images/back.png" class="back"></img>
	<div class="head">
		<p class="p">注册</p>
	</div>
	<form method="post" class="am-form am-form-horizontal">
	<div class="middle">
		<div class="input_box">  
			<img src="/static/images/user.png" class="img">
			<input type="text" id="regist_inputnum" placeholder="请输入您的手机号"  value="" name="usernum" autocomplete="off" maxlength="11">
			<span id="error" class="error" style="display:none;"></span>
		</div>
		<div class="input_box" >
			<img src="/static/images/pw.png" class="img">
			<input type="password" id="regist_inputpwd" placeholder="请输入密码" value="" name="password" autocomplete="off">
		</div>
		<div class="input_box">
			<img src="/static/images/pw2.png" class="img">
			<input type="password" id="regist_inputpwd2" placeholder="请确定密码" value="" name="password" autocomplete="off">
		</div>
		<div class="check">
			<div style="float:left;width:206px;">
				<label>
					<div class=""><a class="color" href="{:url( 'Ucuser/Index/login',array('mp_id'=>$mp_id) )}">已注册，登陆</a></div>
				</label>
			</div>
			<div  style="float:right;width:170px;">
				<div class=""><a class="color" href="{:url( 'Ucuser/Index/forget',array('mp_id'=>$mp_id) )}" >忘记密码？</a></div>
			</div>
		</div>
	</div>-->
    <div class="bg">
<form id="form" action="{:url( 'Ucuser/Index/register',array('mp_id'=>$mp_id) )}" method="post" style="width: 70%;margin: 0 auto;text-align: center;margin-top: 200px;">
    <div class="weui_cells weui_cells_form" style="height: 600px;">
        <div class="weui_cell" style="height: 200px;font-size: 50px;color: #616161;">
            <img src="/static/images/user.png" class="img"></img>
            <div class="weui_cell_bd weui_cell_primary" style="margin-left: 20px;">
                <input class="weui_input" id="inputnum" type="tel" name="mobile" value="" required="" pattern="[0-9]{11}" maxlength="11" placeholder="请输入手机号" emptytips="请输入手机号" notmatchtips="请输入正确的手机号">
                <p id="error" class="error" style="display:none;"></p>
            </div>
            <div class="weui_cell_ft">
                <i class="weui_icon_warn"></i>
            </div>
        </div>
        <div class="weui_cell" style="height: 200px;font-size: 50px;">
            <img src="/static/images/pw2.png" class="img"></img>
            <div class="weui_cell_bd weui_cell_primary" style="margin-left: 20px;">
                <input class="weui_input" type="password" id="regist_inputpwd" name="password" value="" required=""  placeholder="输入密码" emptytips="请输入密码" notmatchtips="请输入正确密码">
            </div>
            <div class="weui_cell_ft">
                <i class="weui_icon_warn"></i>
            </div>
        </div>
        <div class="weui_cell" style="height: 200px;font-size: 50px;">
            <img src="/static/images/pw2.png" class="img"></img>
            <div class="weui_cell_bd weui_cell_primary" style="margin-left: 20px;">
                <input class="weui_input" type="password" id="regist_inputpwd2" name="repassword" value="" required=""  placeholder="确认密码" emptytips="请输入密码" notmatchtips="两次密码不一致">
            </div>
            <div class="weui_cell_ft">
                <i class="weui_icon_warn"></i>
            </div>
        </div>
         
    </div>
    <div class="check">
                            <div style="float:left;width:206px;">
                                <label>
                                    <div class=""><a class="color" href="{:url( 'Ucuser/Index/login',array('mp_id'=>$mp_id) )}">已注册，登录  </a></div>
                                </label>
                            </div>
                            <div  style="float:right;width:170px;">
                                <div class=""><a class="color" href="{:url( 'Ucuser/Index/forget',array('mp_id'=>$mp_id) )}" >忘记密码？</a></div>
                            </div>
                        </div>                                            
	<div class="but">
         <button class="btn ajax-post btn-success login" id="submit" type="submit" target-form="form-horizontal" style="margin-top:80px;"><span class="login_font">注册</span></button>
    </div>
	</form>
	<div class="bottom">
		<label>您的专业企业管家</label>
	</div>
     </div>
    </div>
    <script src="__JS__/jquery-2.1.4.min.js"></script>
	<script src="__JS__/login.js"></script>
    <script type="text/javascript">
                $("form").submit(function(){
                    var self = $(this);
                    registerCheck();
                    $.post(self.attr("action"), self.serialize(), success, "json");
                    return false;
                    function success(data){
                            window.location.href ="{:url( 'Ucuser/Index/login',array('mp_id'=>$mp_id))}" ;
                    }
                 });
    </script>
    {/block}<!--body end -->